import { array } from 'vue-types'

import type { ICreatePostReq } from '@/apis'

import type PostDialog from './PostDialog'

export const postDialogProps = () => ({
  statusOptions: array<OptionItem>().def([])
})

export const formData = (): ICreatePostReq => ({
  postName: '',
  postCode: '',
  postSort: 0,
  status: '0',
  remark: ''
})

export type IFormData = ICreatePostReq
export type PostDialogRef = InstanceType<typeof PostDialog>
